package com.imooc.user.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <br>
* <b>功能：</b>群组表 entity类<br>
* <b>作者：</b>Tim<br>
* <b>日期：</b>2023<br>
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_center_group")
@ApiModel(value="TUserCenterGroup对象", description="群组表")
public class TUserCenterGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户所在班级")
    private Long parentId;

    @ApiModelProperty(value = "群组id")
    private String groupId;

    @ApiModelProperty(value = "群组类型： 1班级群 2年级群 3学校群 4教育局群 5普通群")
    private Integer groupType;

    @ApiModelProperty(value = "群名称")
    private String groupName;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "状态 1:正常,0:删除",hidden = true)
    @TableField(value = "STATUS", fill = FieldFill.INSERT)
    @JsonIgnore
    private Integer status;


}